www.gusucode.com > 24Beta 虚拟主机版 1.0.0 Beta源码程序 > 24Beta 虚拟主机版 1.0.0 Beta源码程序/24Beta-1.0.0-vhost/protected/views/topic/posts.php

    <?php
$this->pageTitle = $_GET['category'] ? $posts[0]->category->name : '首页';
cs()->registerMetaTag(sprintf(param('keywords'), $topic->name, param('domain')), 'keywords');
cs()->registerMetaTag(sprintf(param('description'), $topic->name . '文章列表', param('domain')), 'description');

?>
<div class="left content">
<?php
	$this->renderPartial('/_public/caption', array('title'=> $topic->name));
    $this->renderPartial('/_public/post_list', array('posts'=>$posts, 'pages'=>$pages, 'ads'=>$ads));
?>
</div>
<div class="right sidebar">
	<?php $this->renderPartial('/_public/sidebar_list', array('title' => '本专题十大人气新闻', 'data' => $topic->maxVisitPosts));?>
	<?php if ($ads['topic_posts_sidebar_ad1']->code) $this->renderPartial('/_public/sidebar_ad', array('title'=>'赞助商', 'adcode'=>$ads['topic_posts_sidebar_ad1']->code));?>
	<?php $this->renderPartial('/_public/sidebar_list', array('title' => '本专题十大争议新闻', 'data' => $topic->maxCommentsPosts));?>
	<?php if ($ads['topic_posts_sidebar_ad2']->code) $this->renderPartial('/_public/sidebar_ad', array('title'=>'赞助商', 'adcode'=>$ads['topic_posts_sidebar_ad2']->code));?>
</div>
<div class="clear"></div>